package com.imooc.liu.shiroimooc.service;

import com.imooc.liu.shiroimooc.dao.UserDao;
import com.imooc.liu.shiroimooc.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户接口实现类
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findByUsername(String username) {
        return userDao.findByUsername(username);
    }
}
